package pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

public class Table {

  private Integer tableId;
  private String tableName;
  private Integer tableCode;
  private String tableType;
  private Integer tableStatus;
  private Integer tableCapacity;
  private Integer tableIsDeleted;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Timestamp tableCreateTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Timestamp tableUpdateTime;
  private TableInfo tableInfo;


  private Integer page;
  private Integer limit;

  public Table() {
  }

  public TableInfo getTableInfo() {
    return tableInfo;
  }

  public void setTableInfo(TableInfo tableInfo) {
    this.tableInfo = tableInfo;
  }

  public Integer getPage() {
    return page;
  }

  public void setPage(Integer page) {
    this.page = page;
  }

  public Integer getLimit() {
    return limit;
  }

  public void setLimit(Integer limit) {
    this.limit = limit;
  }

  public Integer getTableId() {
    return tableId;
  }

  public void setTableId(Integer tableId) {
    this.tableId = tableId;
  }


  public String getTableName() {
    return tableName;
  }

  public void setTableName(String tableName) {
    this.tableName = tableName;
  }


  public Integer getTableCode() {
    return tableCode;
  }

  public void setTableCode(Integer tableCode) {
    this.tableCode = tableCode;
  }


  public String getTableType() {
    return tableType;
  }

  public void setTableType(String tableType) {
    this.tableType = tableType;
  }


  public Integer getTableStatus() {
    return tableStatus;
  }

  public void setTableStatus(Integer tableStatus) {
    this.tableStatus = tableStatus;
  }


  public Integer getTableCapacity() {
    return tableCapacity;
  }

  public void setTableCapacity(Integer tableCapacity) {
    this.tableCapacity = tableCapacity;
  }


  public Integer getTableIsDeleted() {
    return tableIsDeleted;
  }

  public void setTableIsDeleted(Integer tableIsDeleted) {
    this.tableIsDeleted = tableIsDeleted;
  }


  public java.sql.Timestamp getTableCreateTime() {
    return tableCreateTime;
  }

  public void setTableCreateTime(java.sql.Timestamp tableCreateTime) {
    this.tableCreateTime = tableCreateTime;
  }


  public java.sql.Timestamp getTableUpdateTime() {
    return tableUpdateTime;
  }

  public void setTableUpdateTime(java.sql.Timestamp tableUpdateTime) {
    this.tableUpdateTime = tableUpdateTime;
  }


  @Override
  public String toString() {
    final StringBuffer sb = new StringBuffer("Table{");
    sb.append("tableId=").append(tableId);
    sb.append(",tableName='").append(tableName);
    sb.append(",tableCode=").append(tableCode);
    sb.append(",tableType='").append(tableType);
    sb.append(",tableStatus=").append(tableStatus);
    sb.append(",tableCapacity=").append(tableCapacity);
    sb.append(",tableIsDeleted=").append(tableIsDeleted);
    sb.append(",tableCreateTime=").append(tableCreateTime);
    sb.append(",tableUpdateTime=").append(tableUpdateTime);
    sb.append(",tableInfo=").append(tableInfo);
    sb.append(",page=").append(page);
    sb.append(",limit=").append(limit);
    sb.append("}");
    return sb.toString();
  }
}
